﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>

	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

	<script type="text/javascript" src="http://res.mywdk.com/utils/jshashtable.js"></script>

	<script src="../jqc.core.js" type="text/javascript"></script>

	<script src="../events.js" type="text/javascript"></script>

	<script type="text/javascript">
		var obj = {};
		obj.version = "1.0";
		obj.mymethod = function() { };

		Object.extend(obj, EventDispatcher);

		obj.addEventListener('ini', function(e) {
			alert('hit' + e.message);
		});

		obj.addEventListener('ini2', function(e) {
			alert('hit' + e.message);
		});

		obj.removeEventListener('ini');

		obj.triggerEvent('ini', { message: 'event happend' })
	
	
	</script>

</head>
<body>
</body>
</html>
